package com.wt.admin3.service;

import com.wt.admin3.config.aspect.LogAspect;
import com.wt.admin3.service.file.FileService;
import com.wt.admin3.service.sys.SysSettingService;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import jakarta.annotation.Resource;

@Slf4j
@Component
public class InitService {

    @Resource
    private LogAspect logAspects;
    @Resource
    private FileService fileService;
    @Resource
    private SysSettingService sysSettingService;

    @EventListener
    public void init(ApplicationReadyEvent event) {
        log.debug("Init Service Start");
        logAspects.init();
        fileService.init();
        sysSettingService.init();
        log.debug("Init Service End");
    }


}
